/*
* @author : TF-BJ-C064
* @creation : 2014-8-7 下午2:53:48
* @description : 
*
*/

package com.umeng;

import java.text.SimpleDateFormat;
import java.util.Date;

public class AppStat {
	
	private String datetime;
	private int active_sum;
	private double rate;
	
	SimpleDateFormat sdf = new SimpleDateFormat("2014-MM-dd HH:mm:ss");
	SimpleDateFormat sdfparse = new SimpleDateFormat("MM-dd");
	
	public boolean parseDatetime(String dateIN){
		try{
			Date date = sdfparse.parse(dateIN);
			if(date!=null){
				this.datetime = sdf.format(date);
				return true;
			}
		}catch(Exception e){
			e.printStackTrace();
		}
		return false;
	}
	
	public String getDatetime() {
		return datetime;
	}
	public void setDatetime(String datetime) {
		this.datetime = datetime;
	}
	public int getActive_sum() {
		return active_sum;
	}
	public void setActive_sum(String data) {
		this.active_sum = Integer.parseInt(data); 
	}
	public void setActive_sum(int active_sum) {
		this.active_sum = active_sum;
	}
	public double getRate() {
		return rate;
	}
	public void setRate(double rate) {
		this.rate = rate;
	}

}
